package com.sls.sys.service;

import java.util.List;

import com.sls.core.socket.Head;
import com.sls.page.Pagination;
import com.sls.sys.pojo.RoleInfo;

/**
 * 
 * @author wendb
 * 
 */
public interface RoleInfoService {
	/**
	 * 添加角色信息
	 * 
	 * @param body
	 * @param head
	 * @return
	 * @throws Exception
	 */
	public void save(String body, Head head) throws Exception;

	/**
	 * 删除角色信息ById
	 * 
	 * @param body
	 * @param head
	 * @return
	 * @throws Exception
	 */
	public void delete(String body, Head head) throws Exception;

	/**
	 * 修改角色信息
	 * 
	 * @param body
	 * @param head
	 * @return
	 * @throws Exception
	 */
	public void updateById(String body, Head head) throws Exception;

	/**
	 * 查询角色信息
	 * 
	 * @param body
	 * @param head
	 * @return
	 * @throws Exception
	 */
	public RoleInfo findById(String body, Head head) throws Exception;

	/**
	 * 分页查询角色信息
	 * 
	 * @param body
	 * @param head
	 * @return
	 * @throws Exception
	 */
	public Pagination<RoleInfo> findPage(String body, Head head) throws Exception;

	/**
	 * 查询所有角色（id，name）
	 * 
	 * @param body
	 * @param head
	 * @return
	 * @throws Exception
	 */
	public List<RoleInfo> findAll(String body, Head head) throws Exception;
}
